﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ShineTech.Web.Helpers
{
    public static class HttpRequestExtensions
    {
        public static string GetRequestUrl(this HttpRequest source)
        {
            return $"{source.PathBase}{source.Path}{source.QueryString}";
        }

        public static string GetRequestBaseUrl(this HttpRequest source)
        {
            return $"{source.PathBase}{source.Path}";
        }
    }
}
